import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/finance/client/subject/getList',
    method: 'get',
    data: query
  })
}
export function getSubjectList(query) {
  return request({
    url: '/finance/client/subject/getList',
    method: 'post',
    data: query
  })
}
export function saveSubject(query) {
  return request({
    url: '/finance/client/subject/getList',
    method: 'post',
    data: query
  })
}
export function removeSubject(query) {
  return request({
    url: '/finance/client/subject/remove',
    method: 'post',
    data: query
  })
}
export function getCapitalDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/finance/client/subject/info?brokerID='+query.brokerID,
    method: 'get',
    data: query
  })
}